package org.example.gift.client;

import org.example.gift.domain.LoginUser;
import org.example.gift.fallback.LoginUserFallback;
import org.example.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "gift-auth",fallbackFactory = LoginUserFallback.class)
public interface LoginUserFeignClient {

    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

}